﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
namespace Second_Houses
{
    /// <summary>
    /// Handler1 的摘要说明
    /// </summary>
    public class Handler1 : IHttpHandler, IRequiresSessionState
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            var yzm = context.Request["yzm"].ToString();

            if (yzm.ToString().ToUpper() == context.Session["CheckCode"].ToString().ToUpper())
            {
                context.Response.Write(1);
            }
            else
            {
                context.Response.Write(0);
            }
            
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}